import utils  from '@utils/index'

export const list = function() {
    return utils.service({
        url: '/m/shoppingcart/list',
        method: 'get'
    })
}

export const mod = function(data) {
    return utils.service({
        url: '/m/shoppingcart/mod',
        method: 'put',
        data: data
    })
}

export const del = function(data) {
    return utils.service({
        url: '/m/shoppingcart/del/'+data.id,
        method: 'delete'
    })
}

